package com.zheng;

import com.zheng.client.RPCConsumer;
import com.zheng.service.UserService;

/**
 *  @author: zheng
 *  @Date: 2020-06-28 23:02
 *  @Description:
 */
public class CustomerBootStrap {

    public static void main(String[] args) throws InterruptedException {
        RPCConsumer rpcConsumer=new RPCConsumer();
        UserService userService= (UserService) rpcConsumer.createProxy(UserService.class);
        while (true){
          String result= userService.sayHello("RPC开始建立连接");
          System.out.println(result);
          Thread.sleep(200);
        }
    }
}
